<?php

define('BASE', dirname(dirname($_SERVER['SCRIPT_FILENAME']))); 
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . BASE.'/libs/mylibs/');


require_once('Zend/Loader.php');
Zend_Loader::registerAutoload();

$dbobject = new Dblib();

$conn = mysql_connect('localhost','root','') or die('Khong the ket noi den CSDL');
mysql_selectdb('tintuc');

mysql_query("SET NAMES utf8");

define('SMARTY_DIR', BASE . '/libs/smarty/');

  


require_once(SMARTY_DIR . 'Smarty.class.php');
$smarty = new Smarty();
 
//$smarty->assign('limit', $limit);

$smarty->template_dir = BASE .'/templates/admin/';
$smarty->compile_dir = BASE . '/data/temp/templates_c/admin/';
$smarty->config_dir = BASE . '/data/configs/';
$smarty->cache_dir = BASE . '/data/temp/cache/';



?>